I think this is what is causing the problem with the pull request. Basically this code is executed as part of the deployment process, so there is no guarantee that the rar will have started at this point. I think that all this binding code needs to be moved into a service, that can then express a dependency on the rar properly.