fix output maintainer of package in case of errors (#318)