Defining handle-timeout multimethod.