handle cleanup errors