check if process is running before run again