added 'close' as exit command