add handle_exception middleware