Protects from socket failure. Could not test at home, server crashed