added a Handler for Exceptions when the aplication could not connect to the antelope rest api, fixed a bug in the postbuildevents