Added nullcatcher in gthread.