Move main event loop into event_loop.cc and make unprivileged
Don't throw exceptions from destructors