Merge "Added code to send close_notify alert when OC stack shuts down."