the BerkeleyDB plugin now uses an exitlistener to avoid memory leaks