Further logging and exception catching improvements, #12
Yet more logging and exception improvements, closes #12