Fix deadlock when closing project