Fix for issue quaddra/si#142 - problem in postgres shutdown/startup