trying to make sure phantom closes