Prevent the program from spamming "An error occurred."