Added 'exit' command implementation.