check if process is running before starting it