'print' before exit