error handling for 'pause'