removed unused variable
call global instance destructor