add pause method to AbstractRunnable