More usage of err_exit function.