Properly destroy handles