Stops processes after exit