added deprecation to disconnect/2