bugfix: sleep before term, avoid skipping kill usr1