Fixed undefined "close".