Added an option to disable the shutdown close connection to help with debugging