gridlabdSingle cancel or crash handling.

Adding new PPID, which indicate the process of runForeground function.
Possible error before starting gridlabd or during data dumping can be
handled.