Handle termination a little differently.