Add OSError catch block to message queue purge.