added note about closing files after dup2