Handle errors with log4net