A negative shutdown code, may indicate a hardware problem (not necessary memory, because precise meaning of the codes is not publicly documented). You may try reseting your SMC. If this won't help, you should back up your data and take it to the repair.