in

MRW I stayed up late to finish an assignment that was due at midnight only for the professor to terminate the assignment owing to pupils obtaining technological problems

MRW I stayed up late to finish an assignment that was due at midnight only for the professor to cancel the assignment due to students having technical difficulties

MRW I stayed up late to complete an assignment that was due at midnight only for the professor to cancel the assignment because of to students owning technical challenges