Add error handler for socket, displays alert with message notifying
user.