add disconnect method to usercontext
check for null
updated