You should probably log the exception as well.