Fixed classname in logger and improved exception handling, refs #126