Fixes fade effect ghost windows bug

Solves the ghost windows bug from very quickly closing proccesses