desktop: don't close if already closed