Improving error handling.
Error handling improved, session management moved to an SQLite database.