Catch all exceptions in log input loop