What are the differences between a process and a thread, and what happens if a thread dies unexpectedly?