Minor refactoring

read_recovery_terms hides unused keys, better name for clean shutdown
checking and comment explaining why recovery_indexes is a gen_server.