Clean up the pipe connections