code: def finalize(self, shutit):
  		
  		# Finish with the target
  		target_child_pexpect_session = shutit.get_shutit_pexpect_session_from_id('target_child')
  		assert not target_child_pexpect_session.sendline(ShutItSendSpec(target_child_pexpect_session,'exit',ignore_background=True)), shutit_util.print_debug()
  		host_child_pexpect_session = shutit.get_shutit_pexpect_session_from_id('host_child')
  		host_child = host_child_pexpect_session.pexpect_child
  		shutit.set_default_shutit_pexpect_session(host_child_pexpect_session)
  		shutit.set_default_shutit_pexpect_session_expect(shutit.expect_prompts['ORIGIN_ENV'])
  		shutit.do_repository_work(shutit.repository['name'], docker_executable=shutit.host['docker_executable'], password=shutit.host['password'])
  		# Final exits
  		host_child.sendline('rm -f ' + shutit.build['cidfile']) # Ignore response, just send.
  		host_child.sendline('exit') # Exit raw bash. Ignore response, just send.
  		return True
docs: Finalizes the target, exiting for us back to the original shell
  		and performing any repository work required.