Explicitly closing the connection fixes timeout issues.