Close the DB connection by default before running a shell command.