Only try to shutdown server if actually running