Minimalistic Java library that executes task with a timeout