impossible to close while algorithm is running