This ensures the process termination even if TimeoutException occurs.