Changes to parameters to avoid crashes and removed Ctrl-C signal catching at thread.c