How to overcome printer in error state problem?