Change exit mode to 1 when failed forking