Exception Handler and Log-Procedure