- Created a shutdown() func to clean up at termination