close the oos ois and soc.