Add implementation of detach routine and close;

	modified:   mm/ssmem.c