Fixed bug with the socket resource automatically closing after creating the handler thread and content-type for default page being null