Add support for closing a ticket