Add support for pre and post daemonization configs rather than initializers
Improve exception handling in listen block