Better shutdown behaviour, minor API fidgeting, added transactions for ALL THE THINGS..