making executor exchangeable
fixing shutdown sequence