I am not a lawyer, but I believe that here in Massachusetts the law is that you must exit your house if there is an intruder, unless thst is not possible. Only then can you use lethal force (assuming of course, that the local police chief has granted your application for a gun license based on his determination that you have a "legitimate need.")
What ever happened to A Mans Home is his Castle?