Made Task check if process is None before polling to avoid an Exception when a task is polled before it is run.