Add bdclose command before model is openend