fixed bug where local session was causing exceptions to be swallowed