improve exceptionhandling
Merge branch 'master' into jupis