Handle connections being closed.