When not in watch mode, tasks should now exit process with the correct code.