Stop mac re opening applicaions on restart