Empty array after clearing timeouts