fixes redmine issue #1565 by not keeping a database connection open during the start.runs; with test.