[ticket/12483] Close database connection when tearDown() is called

Similar to phpbb_database_test_case::tearDown()

PHPBB3-12483