make daemon try the operations that might fail before fork rather than after