Better exception safety.