Added really basic exception handler
Added exception handler, see issue #7