Wait for command to finish when exiting