fix closedown