Reworked mirror to be as conservative as possible.
Added warning on first EMFILE error.