fixing #5 add room clean up in memory adapter