Your .logout would really do the trick all right. It would mess him up. If someone used that, when ever they closed a mex window they would kill mex and cause a mess. That command MUST! be put in an if block so that it will ONLY be executed from the console window.