Jack in the Box to shutter 40 stores