How To Prevent A Program From Closing