Capture a screenshot when some shell remained open