Make fail gracefully on no network, format code