Unref timer when cancelling it