Added exception handling

Co-authored-by: Danijel Schorlemmer <ds@gfz-potsdam.de>
2 jobs for feature/exception-handling in 56 seconds (queued for 3 seconds)