remove call to non-existent close() function