I have a function with an parameter (alerts) which allows the user to receive audible warnings on errors, and also cleans up left-open graphic devices:
alerts