catching exceptions for linked session