Make sure to purge the queue first

In case an earlier test run does not finish
correctly (e.g. hangs up), we may end up with
a client-named queue with messages in it.
Log failed tests
Clear all resource alarms when releasing resources
Compile
Catch all exceptions when releasing resources