Working on 'close' command
Implement 'close' command