fixed issue where a destroyed instance left a zombie process