reraise exception when error happens