Add no_core_dumps() to main()

no_core_dumps() prevents Linux from writing core dumps. This is implemented as a security measure to prevent passwords in memory from being dumped to file.