Add note to docs about calling onExit in a masked state