cfunction (thread/exit &opt code) Exit from the current thread. If no more threads are running, ends the process, but otherwise does not end the current process.