Implement error handling between handlers. Add session options