TAJO-1056: Wrong resource release or wrong task scheduling. (jinho)

Closes #151