Try to deal properly with rollbacks.