Removed crash.dump
Exit properly and use spawn instead of spawn link
Fixed trying