Fix issue with main loop repeatedly trying to execute client requests when there are none