Added missing function close()