completed first iteration on Prolog/Logtalk error handling