tryCatch statement around startModel function