issue91: do not accept resume/suspend when a task is ongoing.

I'd really like if you could switch this method to the `switch..case` pattern like the method `def self.action_up` for instance.

It would really help for the readability