Add helper to check whether a process running