Fixes #265. Corrects issue where timeout handle was not set to null