exit in the case of no network connection