try {
  hoge.open(hage);
} catch(AlreadyOpenException e) {
  hoge.close();
  hoge.open(hage);
}