make sure to close remotesoc