Checked the validity of the Connection shared pointer
Merge branch 'fix/model_removal_crash' into development
Fixed creation of empty shared_ptr