Disconnect device function