fixes #87 by remove redundant close.