I think it is only necessary to add an amazon account to the binding and the issue appears.
You should take a look at:
org.openhab.binding.amazonechocontrol.internal.WebSocketConnection
The method:
initPongTimeoutTimer()
starts the timer to close the webSocketClient through the method:
close()
in the same class.