[master] [PATCH] Do not exit if there are some threads still running