Cant remember this horror movie with twist ending

So this movie is about a man and his wife whos son died they then go to this house then his wife goes out then comes home saying she was being chased by people with gas mask .so long story short they keep running from then .at the ending it is revealed that they were ghosts chasing them and his wife accidentally shot him with a gun

Static (2012)