Only create a new model registry if a connection could be established
Merge pull request #4 from leofeyer/pull/2

Only create a new model registry if a connection could be established