Prevents crashing when the connection is closed... kind of
Removes panic... sometimes api fails