Set up cleanup of Machine