Problem with event handler in Timer interrupt