Implemented OS_SHUTDOWN