Adding manual exception logging