[PATCH] applicom: fix error handling