Force logout when script is done