trying to cleanup shutdown process