Fixed pane closing bug

https://github.com/Astonex/Antox/issues/395