fix infinite loop in GetOptions error message passing

The local signal handler for __WARN__ was causing warnings that were thrown
during the error message passing to be added to the list of error messages to
pass thereby triggering an infinite loop.