check for initialisation on exit