wrap clear_all notifications in a transaction