Fix bug in setAlwaysclosed and add isAlwaysOpen/Closed