Macbook Air won't shutdown correctly
I have a Macbook Air (13-inch, Early 2015) running Sierra.
When I shutdown my computer it does not power off normally. I click on "Shut Down" from the Apple menu. The screen goes black but the backlight remains on and the lights underneath the keyboard stay on. It remains like this for over 20 mins before seemingly power off.
The only way I can get it to shut down normally is if I hold the power key down for 10 seconds. But that's not the normal way and it comes up with a message next time I boot saying it wasn't shutdown correctly.
I've upgraded from El Capitan to Sierra over the last day but it's made no difference. The problem has been going on for around 2 weeks. I've owned the laptop since new, about 1 year ago, and it's worked flawlessly until then.
The problem occurs regardless of whether the computer is connected to power or running on battery. I have not modified the computer or used new hardware since the problem occured.
Any help would be appreciated
MacBook Air, macOS Sierra (10.12)