Fix canceling timeout
Fix missing import for throwing timeout Exception
Fix rejecting promise when connection fails
Fix catching UnderflowException when no targets were found
Add test skeleton
Add units tests (95% coverage)