termination detect print