Handle user interrupt in postgres

Handle CTRL-C