small code fixes
- added error stream to process redirector so logging works in spawned processes
- close on launch fix