Handle user interrupt in postgres

Handle CTRL-C
Would this work with unix 2.5 as well? That would be important, since that's what GHC 7.4 ships with.