added exit with not null code