:lipstick: Cleanup code.
win: Improve how we free handles thread-safely.