Implemented closeSDP, partially implemented openSDP.