CHANGE: Exception handling using built in exception base classes in session.py