Handle error codes for short lived scripts