added exit status return to ssh_exec