catch exception if server is down