Handling destroy flag