Ensure no leaks, clean thread exit