Testing fix for shutdown issues on BSD