Fix memory leak error during composing
Created by: J3FALL
In practice, while Composer is working, it generates a lot of Chain objects that reserve Mbs of memory. However, most of chains are a short-lived objects and the memory can be released after it has became irrelevant. The workaround: during the composing a special object can manage the status of the chains that were initialized.