Added close handling to editor panels.

Also fixed some table event handling not being registered correctly.