better opening and closing of memory storage

opening - schedules ongoing jobs, shutdown thread
closing - persists once, cancels all scheduled persistence