Add shutdown hook

Make ConnectionManager an interface