The connection should be closed here. Otherwise if the other party don't close it, it may stay opened until the process exits.