Exit if unable to connect to RM