Set to running before so PID gets cleared on error.