Clear out old layers when probing new server
Fix a couple of errors in the console