Added virtualprotect to revert so it could actually write back to executable memory, fixing crash on close