Fixed a bug where buildings might not close automatically