set variable to "nil" on delete

This completes bug fix on lingering variables. Functions are still
problematic... and will require "close" and re-start.