Is there a way to safely have exposed electrical wires?
Yes. This is not only safe but best practice. Tuck the capped wires completely into the junction boxes to avoid accidentally snagging on passing ladders, wallboard, etc. 

If the room continues in general use then install blank cover plates.