Change benchmark mark output method to shutdown handler