Added benchmark at shutdown handler