bin/mgmt: added error checks when linking fails