Prevents errors on multiple Hull.login calls
Handles the closing popup windows (when done manually)