Close join socket when jkoin thread is interrupted