I'm experimenting with different causes to lost a connection. When I'm connecting to the server and close the B4A application (by dragging its screen on the left), the connection lost, and the server remove that client number. However when i turn off the tablet's wifi, the A_streams_error fires and then I try to exit the application (socket.close, exitapplication)...but this time the server does not recognise that the connection is lost. How can emulate the closing application as it happens on activity_pause(userclosed)?