Use a session loop with Net::SSH to provide exit code and streaming.