#55 Edited PinApi.__close__ so that output pins are not set to 0 when leaving context manager.