Fix where an uninitialized client would throw error on failure.
Merge pull request #353 from srosato/fix-framework-module

Fix where an uninitialized client would throw error on failure.