Fix race condition between cleanup and Start

There was problem when Start might be before cleanup

Fixes #6904

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Merge pull request #7744 from LK4D4/fix_race_cleanup_start_#6904

Fix race condition between cleanup and Start