Without this the STOP event was lost most of the times because tsdecrypt exited before the thread delivered the event.