Coding WAIT after an ESC instruction ensures that any unmasked floating-point exceptions the instruction may cause are handled before the processor has a chance to modify the instruction's results.
FWAIT is an alternate mnemonic for WAIT.
Refer to the Intel documentation for more information about when to use WAIT (FWAIT).