stopListening

Signals the background listener loop to stop and closes listenSocket, interrupting any in-progress blocking receive() call.

Return

Result.success if the listen socket was released, or the failure that prevented it