Added close command to printcore pipe