Fix port number generation for Redis, also removed Exception catching since it's useless