fix. clear command if catch exception