Invoke JAI shutdown mechanism only if JAI has been initialized.