fixed minor bug calling error_reply without module, send error_reply on exception