Added error handling: when checking for a process if more than one process is running an MultipleProcessesRunningException is raised.