Add routine to disconnect from js, without killing js.

Could be used by child process, as it downloads a file or some other task.