FIXED error handling for sessions and reset
Version 0.10.2