* added feature for chard dev open - close with proper refcount

=> note the actual cleanup and refcount is a mess and doesn't garantee
proper operation, a deep overall of the refcount and object tracking is
needed