Called by pause. Returns true if successfully paused.
If false, the state is not changed.
@protected Future<bool> onPause();