Avoid a shutdown problem by killing main process.
This is 'avoid', not 'fix'. but it looks work anyway.