Improving speed for groups retrieval for the front-end.
Fixing a dead lock due to lack of excpetion handling