private final class BeforePassivationListener implements EventListener
{
public void event(Event event)
{
State finalState = State.ERRORED;
try
{
/* the approach here is not ideal as there is a race condition where a
* queue etc could be created while the virtual host is on the way to