If my program encounters a system error, how to prevent the system error message from being displayed?