More work on accept, recv, close