Fixed a problem by backgrounding process and waiting for it.