Added the command and fail code before sleep.
Bundle check and bundle install issued to many times during the day
No need for if, the later 'case' handles the scenario