Fix reconnection bug

Add the reset of reconnection times variable, and delete some useless
files