Add ReopenOnSignalLoop(), calls Reopen() on signal

Update .gitignore