Reraise any exceptions when flushing the database