Fixed a travis bug

Fixed a bug that was setting off travis. Basically the purge method in
threads was not getting returned correctly.