Added close_pinv().