Add check for a null video URI.
Clean up sharing.