fixing bug where when a socket doesnt come through the main-event-handler, it wont bug out because its expecting one