Hi Ludek,
When running a brick, series of tasks get created and queued for execution. If you after certain point manually stop the brick in the UI, it wont actually kill the backend tasks. As you pointed out it will solve itself as the tasks will time out and get cleaned up. Unfortunately there is no configuration to make this process faster.