It is probably appropriate to mask “Inexact” and “Underflow”. “Division by Zero” and “Invalid Operand” are probably caused by bugs in your program and should be investigated instead of being papered over.
Whether or not IEEE signal messages should be output or masked depends on which Fortran standard is being complied with. There are compiler options and environmental variables that affect the run-time behavior.