added some exceptions to handle system crashing due to socket timeouts