Add Try() as a package level function

This is a simple helper function that implements a simple retry
loop.