Cleanup of tab closing logic
Remove debug code
Update ace