fix bug where tapgesturerecognizer was not removed when app is backgrounded during close animation.