bugfix, exception not handled as expected