Log exceptions (closes #2)