try multiple times to discover the nREPL port, fix exception handling/exit issues