added statistics write at the end of plugin's execution (as checker)