Added call to Commit (save) during Terminate

scorm.save() wasn't invoking Commit() after setting exit value and before invoking Terminate(). This could lead to exit value not being properly persisted in the database.