perror to display any problems that arise during raw-mode transitions