Macbook air shuts down when lid is closed
My Macbook air (purchased in 2013) shuts down every time the lid is closed for longer than a minute or two. It used to just go to sleep when I did this. I have to turn it back on using the power button when I open it, and when I type in my password to log on, it shows a loading bar that I never used to see when I logged in. It shuts down all of my applications which is frustrating. I have tried adjusting power and energy settings but so far I have no found a solution.
MacBook Air (13-inch Mid 2013), iOS 9.0.2