Yes, I think this is safe because of cleanup on close.