logging out unconditionally
cleanup
removed extra stubbing of DL version
handling error code "2" (no cert)