Added basic error logging for legacy sessions.