Add Python daemon shutdown test