aui now shuts down properly