Fixed bug with deleted PID file