sendError method on controller does not longer throws an exception