Closed a file stream.
Added pattern mining agent to use the Pattern Miner.
Added PatterMiningAgent to OAC and some config.
Added destroy function to PatternMiner.