move print file from exception to terminal