I used : --cmd-dead shutdown-r-f .

I think you want a few spaces in there...
I added spaces first time but I got an error saying something like "command -r not found" , I can't understand correctly as it is closing rapidly.

I don't know whether command without spaces will work...

P.S. Added '> bfgminer.txt' at-last which made a log file. Log file:
[2014-11-29 14:30:47] bfgminer: -r: unrecognized option
~~MZ~~