save bibliography only at_exit