Terminate the backend ourselves on PG 9.2+

This should make it harder to accidentally break this test.