Why has my laptop started to make a strange whining noise when I close the lid?

I had just charged the battery after the laptop had not been used for 8 days so perhaps it had overheated???
When I just turned it off without closing the lid it was silent.
 
Top