Fixed window closing process