print output before unmounting