error handling on no session