bug fix: remove observation for the factor graph if an exception is
thrown.