'Process and thread exit' examples