Adding clean close method to Pi's