Added termination detection to actors
Added pausable actor