Add close method to SyntacticResource
Implementation of the new close() method of SyntacticResource interface