postgresql f10 hangs on shutdown