Adding purge and crash collection logic

Adding methods to start collecting crashes as well
as purge them from the crash collector