Error Handling Discrepencies

Background: We have a Notes Client that is basically continuously running in a loop watching for information it needs to process. The code it is running is Lotusscript.

Issue: At times, there errors are thrown that are not captured by the script’s error handler and instead are only prompted in the Client’s UI. The 2 most common that we see are Network Timeout errors and “database is being taken offline…”

What is odd is that sometimes the script’s error handler catches the error and other times it doesn’t. Same errors, different end results.

Is there anything that can be done to stop the errors from occurring on the UI? Why would the errors sometimes be caught by the script and other times not when its the same error, at the same line of code?