Logout AIMS at the end of the script.