Added one more spec for the closing callback.
Now the close method can be called safetely more than once.
Fixed spurious test failures on AMPQAscoltatore.