Call correct Controller function in Application.unload
Add debug traces to Controller