properly free handles on the block heap if they're tcp handles