process block for exception handling