I do not have the answer.
But i may have a partial solution.
Some time ago i had a program that received information of an HTTP server in release mode it was failing randomly and unexpectedly, as i did not know why or how to solve it. i used this:
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
'Changed true to false
Return False
End Sub
And vuala! even when the error ocurred the app did not stop, it just waited for the next instruccion.