changed error handling to prevent crash when scheme evaluation fail.