adding an exception if server is not running