[sr-dev] git:master: * Closed database connection after two error case. Thanks to Jan for