Added close function

A webcam_close function has been added to release the memory-mapped
buffers, and free them. Also frees other allocated resources and finally
the webcam itself.