Fixed a bug in context fast_save.
Remove context from current_context on close.

Fixes a bug when context was modified even after it was closed.