Workaround for hanging events. Fixes #4804

Docker-DCO-1.1-Signed-off-by: LK4D4 <lk4d4math@gmail.com> (github: LK4D4)
Merge pull request #4832 from LK4D4/fix_events_hanging_#4804

Workaround for hanging events. Fixes #4804