socket program finished