Fix #263, close windows on dock move