Close type handles.