Solved issue with exceptions thrown within the callbacks