Can I continue filming video while the cover is closed?

I would like to continue filming when the cover is closed. When I tried this the video filming came to an end. How can I do in order to continue filming? Is there a way to disable the microswitch? I am going to film in a rough outdoors location and I want to protect my screen during the filming.