added missed implementation of closed()