secure Mongoose quit URI handler