Fixed xout streams not being closed which is necessary when the same SimpleElastix wrapper is used for multiple registrations