Provide Shutdown method that closes connections cleanly