Handlers errors gracefully