removing object when killed