Handler was checking a null reference

Forgot to add one bool check to see if the process had exited before
trying to use it, caused crashes if the user had the program on the
blcoked list opened, closed it, then tried to remove it from the blocked
list.
Fixed a bug with removal

Similar to the previous commit - forgot to update other conditions