fixed isShutdown exception catching
cleanup