make expire time a system property
try to execute a simple command to test whether session is really connected