Shell is better as it will return control back to the script after the program exits. Sleep is an arbitrary value that may return control to the script too early or too late.