If a killed job belongs to a connection pool, decrease the process counter for it
If a killed job belongs to a connection pool, decrease the process counter for it

Also, fix thinko, to determine if a job is running, check for !$Processes->{$ProcessID}->{RunAtTime} instead of $Processes->{$ProcessID}->{PgBackendPID}

trustly/pgcronjob