fix error propagation in userhandler