Added timeout until reconnection in disconnect event