Actually, in the close button of the form I have:
IF thisform.winsock1.object.state > 2
thisform.winsock1.object.close()
ENDIF
but I realize that the CLOSE() method does not run unless I do
IF thisform.winsock1.object.state > 2
thisform.winsock1.close()
ENDIF
I am doing all this but the form closing is still hanging the fox app.