If it's onclose() that you meant, is it save to invoke the callback on the same tick?