erlang console: variable completion and cleanup