Printing stack traces when handler errors ocurr and improving the config system