handle the exception related blocks