Fix bug: After close windows process still running