[ticket/11590] Close database connections when tearDown() is called

http://tracker.phpbb.com/browse/PHPBB3-11590