Waits for the thread to terminate and returns the exit status.
public function TThread.WaitFor: Integer;