Check if the process is running