fix MOSSContext dispose issue