preventing rails and rake from running when messages are pending