Added closing callbacks
- added Callback for closing tool window and setting it to NULL
so it will recreate after closing
- added callback for closing main window