Small improvements to error handling
shutdown in case of invalid config is now more robust
Fix resource leak in rplet module. prevent some hangs
improve expcetion handling