wait 5s for stopping hadoop