we can't free the config object in main until after the event loop is sh...

This fixes statsrelay where it was reading invalid memory when it was reading the config object. This was causing a bunch of mayhem in production.