Framework implementation for shutdown(2)