Now the resources are released immediately when canceling the computation if the usingResource function is used, although it may slow down a simulation on 10% even if this function is not used but there are other priorities.