Detach from controlling terminal to avoid receiving SIGINT.
Use OnWindows from utils instead of ad-hoc platform check.
Merge pull request #918 from m4burns/master

Detach from controlling terminal to avoid receiving SIGINT.