I don't have your dialog, so I can't seem to duplicate your error. However, I did notice an error that I had missed in the code. In the second SOCKREAD event, there is this command twice:

/sockclose findap

Since that SOCKREAD event is watching for findap# socket events, the socket needs to be closed one of these ways:

/sockclose findap*
or
/sockclose findap $+ %page

Try that change and see if it helps.

-genius_at_work