bundle: detect if bundle file cannot be created