use local $rfs variable instead of object property
restore rfs options when cleaning up in case of exception
remove duplicate getOptions method