Fix crash when closing video while a frame request is pending