finish command mode