pub fn check_already_running() -> Option<i32>
Check if Cortex is already running. Returns the PID if so.