A little refactor of with-event-loop to help with readability