dies gracefully when api server is down or no response is sent back