force cleanup before destroying socket