use defer instead of send in timeout test