Fix server reset to clear files scope

Please review the following commit and merge it if you think it is relevant.

Thank you!

Regards,
Svetozar Toskov.