Locking the excel upon error

"Object reference not set " On attaching the Excel loop when any error occurs its locking the excel. Each time i am creating new excel file. Unable to delete. Any suggestion.

Try deleting Excel process instance once.