SOC : close shared mem handle when shutting down