Remove closeApplication method