Add missing import for shell module on session module.
Fix some incoherences on docstrings.
Replace some generic runtime exception with now defined connection error.