fix #488 added delay before reconnection