Prevent flask plugin from auto-saving known models if request raised an exception.