App stopping in RemoveApplication method