[TEST] Use Shutdown API only if nodes are on 1.3.3 or newer to prevent shutdown problems

This relates to #7885 which causes problems when the shutdown and the kill request happen concurrently.