A slightly more refined version of the error ignoring code, this one avoids printing out the error messages to the console