localserver: fix issue with navigation timeout when client drop connection unexpectedly