error handling for instance config script