The issue raised here could no be found because it is not faced in the example attached. It just occurs when the container is used instead of a job or service.
The JIRA opened to dealing with is: https://issues.jboss.org/browse/AEROGEAR-9676