Changed session errors to script errors.

Fixes #146