Improve exception handling and debug logging
Align level names in English to the right by default