Delete usless logs + test when calling die()