changed order of checks in mypclose() - all green now :)