Notify about tab close.
Fixed build.
Key handling refactored.
Remove tab in EDT.