Not related to your commit but I think we should return false immediately in case of an InterruptedException.