fix: shutdown function should return false on failure.
fix: close function should return false on failure.