Now setting running state after process has started, not before.., to avoid race condition which leads to exception
Now setting running state after process has started, not before.., to avoid race condition which leads to exception

mlassnig/pilot2,mlassnig/pilot2,PalNilsson/pilot2,PalNilsson/pilot2