Added exception handling to listeners; removed general config.