Fixed #179

Turns out you need to use a promise to ensure that the notification for status is sent *before* the ticket has been closed (if stay on ticket is not selected)
added a promise that should still succeed even if the network request fails, if network request fails the notification will not be sent.