Add silent reconnection upon termination (js)