handle errors from receive_smb better, and print error string