throw exceptions when snappy library not load