fix a bug
isOpen not working appropriately, use tryCatch hack
Merge pull request #22 from robertzk/xgb

fix for xgb special serialization