Fix bug when closing the production overview window

By calling `hide` directly, the window manager doesn't know that this
window was closed, which definitly will break the toggle functionality.