Added exception handling

Co-authored-by: Danijel Schorlemmer <ds@gfz-potsdam.de>
2 jobs for master in 45 seconds (queued for 1 second)