Draft cleanup revisited.

* Do draft cleanup before nulling the ticket object
* Only clean note drafts unless the ticket is being closed.