making sure we log on exceptions