fixed bug in run() where it was allowing the cmd to run again even if it had finished previously or was currently running
fixed bug in run() where it was allowing the cmd to run again even if it had finished previously or was currently running

wtsi-hgi/vr-pipe,wtsi-hgi/vr-pipe