Increased relability of webconsole. Now closes and reconnects reliably.