Prevent a type of flooding crash by adding an explicit no-op socket error handler.