Use passed $app instance in Closure instead