Added Closure in run method GApplication