Pid file should be removed after process finished