Check if process is running