Fix launchCommand() timeout loop

- Fix timeout loop for new exit code checking
- Misc. logging fixes