Bad command handling, password security

Bad command raises exception
Bad command with password does not return password
Bad command output is gathered
Bad command with password does not return password2