Improved handling of closed tickets