Closes a connection to a target . The application can no longer refer to the target with the given id .