Add windows process exit handlers