issue #75 partly fixed.  declare callback in catch clause.