Create model only when connection is open
Release v0.0.19