Simplified the module even more, added exception print messages only if debugging is enabled from the conf