Fix command exit status