Why is my bot shows excel is used by another process even excel is closed in background?

Am using like 60 write cells I cant use 60 kill process as it is not a best practice.