Adding support for stopping process if already started.