Fix a missing statusbar update when closing windows