Open dynamical systems and their control