Fixed exception in command pipe thread after sending Icinga SIGTERM.
Bugfixes for the Process class.