Upon user backgrounding the app flush up to 1000 events
New version, 0.6.2