place cursor correctly on abort and complete