Fix call to $app->abort(). Fixes #2270