Cleanup; sleep is message-pump-friendly