stop mongoose only if creation succeded