Make sure we have non-zero exit status on hack build err

Reviewed By: @jwatzman

Differential Revision: D1617708