Chmodding files correctly.
Don't allow scripts to be executed directly.
Forcing removal and being verbose about it.