public String check() throws ManifoldCFException {
try {
getSession();
if (session != null) {
Mongo currentMongoSession = session.getMongo();
DBTCPConnector currentTCPConnection = currentMongoSession.getConnector();
boolean status = currentTCPConnection.isOpen();
if (status) {
session.getMongo().close();
session = null;
return super.check();
} else {