Fix rm segfault - fail on catastrophic error
Fix rm segfault - fail on catastrophic error

fixes #1216

CarterMcClellan/mc,winchram/mc,CarterMcClellan/mc,balamurugana/mc,vadmeste/mc,winchram/mc,abperiasamy/mc,balamurugana/mc,vadmeste/mc,krisis/mc,minio/mc,minio/mc,krisis/mc,harshavardhana/mc,harshavardhana/mc,abperiasamy/mc