added explicit garbage collection to relaxLM