Fixed several bugs to do with video capture. Now, capture window can be safely destroy without crashing