Look in your configuration directory at logs/stack.log. I suspect that something disappears when you unload your macro that either a tool window or a timer or something in your own code needs. That may have led to a secondary Slick-C error being reported in the toolbar code.