Errors in socket server