Kill old main() instead of leaving it as a zombie thread